using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;

namespace emp.DALFactory.SysManage
{
    public class SysMenu
    {
        public static emp.IDAL.SysManage.ISysMenu Create()
        {
            /// Look up the DAL implementation we should be using
            string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
            string className = path + ".SysManage.SysMenu";
            // Using the evidence given in the config file load the appropriate assembly and class
            //SqlServerDAL.SysManage.SysMenu item = new SqlServerDAL.SysManage.SysMenu();
            //return (IDAL.SysManage.ISysMenu)item;

            return (IDAL.SysManage.ISysMenu)Assembly.Load(path).CreateInstance(className);
        }

    }
}
